import  {request}  from '@/request/request'
import type { LoginForm } from '../static/src/types/login'


// 用户登录
export const login = (data: LoginForm) => {
  return request({
    url: '/auth/login',
    method: 'POST',
    data
  })
}

//获取验证码
export const getCode = (params:string) => { 
  return request({
    url: `/resource/sms/code?phonenumber=${encodeURIComponent(params)}`,
    method: 'GET',
  })
}
